﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="storeinfo_parameter.aspx.cs" Inherits="YXShop.Web.admin.templates.label.storeinfo_parameter" %>


<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link href="../../style/admin.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/public.js""></script>
    <script type="text/javascript" src="../../../scripts/prototype.js"></script>
<script language="javascript" type="text/javascript">

function ReturnValue()
{
    var CompositorType;     
    o=document.getElementsByName("rbl_CompositorType");//排序方式
    var len=o.length;   
    for (var i=0;i<len ;i++ )
    {
        if( o[i].checked==true )
        {
            CompositorType=o[i].value;
        }
    }
    var CompositorField =document.getElementById("ddl_filed").value; //排序字段
    var ShowRows = document.getElementById("Tb_rows").value;//显示行数
    var ShowColumns = document.getElementById("Tb_Columns").value;//显示列数
    var NameCharacter =document.getElementById("tb_namelength").value;//名称最大字符数

    var WhetherPagination;
    o=document.getElementsByName("rbl_page");//是否分页
    var len=o.length;   
    for (var i=0;i<len ;i++ )
    {
        if( o[i].checked==true )
        {
            WhetherPagination=o[i].value;
        }
    }


    var IsAudit;
    o=document.getElementsByName("rbl_first");//是否审核
    var len=o.length;   
    for (var i=0;i<len ;i++ )       
    {
        if( o[i].checked==true )
        {
            IsAudit=o[i].value;
        }
    }
    var TempletLayout;      
    o=document.getElementsByName("Rbl_TempletLayout");//布局方式
    var len=o.length;   
    for (var i=0;i<len ;i++ )       
    {
        if( o[i].checked==true )
        {
            TempletLayout=o[i].value;
        }
    }
    var WhetherOmit;
    o=document.getElementsByName("rbl_WhetherOmit");//是否省略
    var len=o.length;   
    for (var i=0;i<len ;i++ )       
    {
        if( o[i].checked==true )
        {
            WhetherOmit=o[i].value;
        }
    }
    
    var ContentCharacter = document.getElementById("tb_ContentCharacter").value;//内容最大字符数
    //自定义内容
    var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");//读fck内容
    var mystyle = oEditor.GetXHTML(true);
    var cnm ="[YX:Loop,YX:LableType=StoreList,YX:CompositorType="+CompositorType+",YX:CompositorField="
    +CompositorField+ ",YX:ShowRows="+ ShowRows+",YX:ShowColumns="+ShowColumns+
    ",YX:NameCharacter="+NameCharacter+",YX:WhetherPagination="+WhetherPagination+
    ",YX:TempletLayout="+TempletLayout+",YX:ContentCharacter="+ContentCharacter+",YX:WhetherOmit="+WhetherOmit+",YX:IsAudit="+IsAudit+"]"+mystyle+"[/YX:Loop]";
    parent.getValue(cnm);
    CloseDiv();

}
/*店铺列表*/
function getValue(value)
{
    if(value!="") 
    {
        var oEditor = FCKeditorAPI.GetInstance("fckLabelContent");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
           oEditor.InsertHtml(value);
           
        }
        
        else
        {
        return false;
        }
    }
}
function ReturnValue2()
{
    var TempletLayout;      
    o=document.getElementsByName("Rbl_TempletLayout");//布局方式
    var len=o.length;   
    for (var i=0;i<len ;i++ )       
    {
        if( o[i].checked==true )
        {
            TempletLayout=o[i].value;
        }
    }
    var WhetherOmit;
    o=document.getElementsByName("rbl_WhetherOmit");//是否省略
    var len=o.length;   
    for (var i=0;i<len ;i++ )       
    {
        if( o[i].checked==true )
        {
            WhetherOmit=o[i].value;
        }
    }
    
    var ContentCharacter = document.getElementById("tb_ContentCharacter").value;//内容最大字符数
    //自定义内容
    var oEditor = FCKeditorAPI.GetInstance("fckLabelContent2");//读fck内容
    var mystyle = oEditor.GetXHTML(true);
    var cnm ="[YX:Loop,YX:LableType=StoreInfo,YX:TempletLayout="+TempletLayout+",YX:ContentCharacter="+ContentCharacter+",YX:WhetherOmit="+WhetherOmit+"]"+mystyle+"[/YX:Loop]";
    parent.getValue(cnm);
    CloseDiv();

}
/*店铺信息*/
function getValue2(value)
{
    if(value!="") 
    {
        var oEditor = FCKeditorAPI.GetInstance("fckLabelContent2");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
           oEditor.InsertHtml(value);
           
        }
        
        else
        {
        return false;
        }
    }
}
function CloseDiv()
{
    parent.document.getElementById("LabelDivid").style.display="none";
}

</script>
</head>
<body>
    <form id="form1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td id="TabTitle0" class="titlemouseover" onclick="ShowTabs(0,2)">店铺列表</td>
            <td id="TabTitle1" class="tabtitle" onclick="ShowTabs(1,2)">店铺信息</td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td style="border: 1px solid #bac9c6;">
    <!--店铺列表信息-->
    <div  id="tab0">
        <table style="width: 99%; margin-top:5px" class="form_table_input">
            <tr>
                <td colspan="4"><strong>商铺列表信息</strong></td>
            </tr>
            <tr>
                <td>排序选择</td>
                <td>
                    <asp:RadioButtonList ID="rbl_CompositorType" runat="server" 
                        RepeatDirection="Horizontal" Height="24px" Width="119px">
                        <asp:ListItem Value="0" Selected="True">升序</asp:ListItem>
                        <asp:ListItem Value="1">降序</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>显示几行</td>
                <td>
                    <asp:TextBox ID="Tb_rows" runat="server" Width="147px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >2</asp:TextBox>
                </td>
                <td>排序字段</td>
                <td>
                    <asp:DropDownList ID="ddl_filed" runat="server" Height="25px" Width="137px">
                        <asp:ListItem Value="sid">自动编号</asp:ListItem>
                        <asp:ListItem Value="addtime">开店时间</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>显示几列</td>
                <td>
                    <asp:TextBox ID="Tb_Columns" runat="server" Width="147px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >2</asp:TextBox>
                </td>
                <td>是否分页</td>
                <td>
                    <asp:RadioButtonList ID="rbl_page" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Value="1" Selected="True">分页</asp:ListItem>
                        <asp:ListItem Value="0">不分页</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>名称长度</td>
                <td>
                    <asp:TextBox ID="tb_namelength" runat="server" Width="147px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >8</asp:TextBox>
                </td>
                <td>是否审核</td>
                <td>
                     <asp:RadioButtonList ID="rbl_first" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0" Selected="True">未审核</asp:ListItem>
                        <asp:ListItem Value="1">审核</asp:ListItem>
                    </asp:RadioButtonList>  
                </td>
            </tr>
            <tr>
                <td>内容长度</td>
                <td>
                  
                   <asp:TextBox ID="tb_ContentCharacter" runat="server" Width="150px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >20</asp:TextBox>
                </td>
                <td>
                    布局方式</td>
                <td>
                  
                    <asp:RadioButtonList ID="Rbl_TempletLayout" runat="server" Height="26px" 
                        RepeatDirection="Horizontal" Width="116px">
                        <asp:ListItem Value="0" Selected="True">Div</asp:ListItem>
                        <asp:ListItem Value="1">Table</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    店铺信息</td>
                <td>
                  
                    <asp:DropDownList ID="ddl_Properties" runat="server" Height="18px" 
                        Width="150px" onchange="javascript:getValue(this.value);">
                     <asp:ListItem Value="">--请选择店铺信息--</asp:ListItem>
                        <asp:ListItem Value="[#StoreName]">店铺名称</asp:ListItem>
                        <asp:ListItem Value="[#BusinessProduct]">主营行业</asp:ListItem>
                        <asp:ListItem Value="[#StoreLogo]">店铺图标</asp:ListItem>
                        <asp:ListItem Value="[#StoreDiscription]">店铺描述</asp:ListItem>
                        <asp:ListItem Value="[#CreateStoreTime]">创店时间</asp:ListItem>
                        <asp:ListItem Value="[#StoreLevel]">店铺等级</asp:ListItem>
                        <asp:ListItem Value="[#StoreHost]">店铺主人</asp:ListItem>
                        <asp:ListItem Value="[#StoreProductCount]">店铺商品数</asp:ListItem>
                        <asp:ListItem Value="[#StoreUrl]">店铺链接地址</asp:ListItem>
                        <asp:ListItem Value="[#StoreArea]">店铺所在地区</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    显示省略号</td>
                <td>
                  
                    <asp:RadioButtonList ID="rbl_WhetherOmit" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="False">否</asp:ListItem>
                        <asp:ListItem Value="True">是</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                      <FCKeditorV2:FCKeditor ID="fckLabelContent" runat="server"  BasePath="~/controls/fckeditor/"  Height="200px">
                    </FCKeditorV2:FCKeditor></td>
            </tr>
            
            <tr>
                <td colspan="4" align="center" style="text-align:center">
                   <input id="bt_Exc" type="button" value="提交" onclick="ReturnValue()" />
                    &nbsp;<input class="form" type="button" value=" 关 闭 "  onclick="javascript:CloseDiv();" /></td>
            </tr>
            </table>
    </div>
    <!--店铺信息-->
    <div  id="tab1" style="display:none;">
        <table style="width: 99%; margin-top:5px" class="form_table_input">
            <tr>
                <td colspan="4"><strong>商铺信息</strong></td>
            </tr>
            <tr>
                <td>内容长度</td>
                <td>
                  
                   <asp:TextBox ID="TextBox4" runat="server" Width="150px"  onkeyup="value=value.replace(/[^\d]/g,'') " 
                        onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" >20</asp:TextBox>
                </td>
                <td>
                    布局方式</td>
                <td>
                  
                    <asp:RadioButtonList ID="RadioButtonList4" runat="server" Height="26px" 
                        RepeatDirection="Horizontal" Width="116px">
                        <asp:ListItem Value="0" Selected="True">Div</asp:ListItem>
                        <asp:ListItem Value="1">Table</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    店铺信息</td>
                <td>
                  
                    <asp:DropDownList ID="DropDownList2" runat="server" Height="18px" 
                        Width="150px" onchange="javascript:getValue2(this.value);">
                     <asp:ListItem Value="">--请选择店铺信息--</asp:ListItem>
                        <asp:ListItem Value="[#StoreName]">店铺名称</asp:ListItem>
                        <asp:ListItem Value="[#BusinessProduct]">主营行业</asp:ListItem>
                        <asp:ListItem Value="[#StoreLogo]">店铺图标</asp:ListItem>
                        <asp:ListItem Value="[#StoreContent]">店铺介绍</asp:ListItem>
                        <asp:ListItem Value="[#StoreAffiche]">店铺公告</asp:ListItem>
                        <asp:ListItem Value="[#CreateStoreTime]">创店时间</asp:ListItem>
                        <asp:ListItem Value="[#StoreLevel]">店铺等级</asp:ListItem>
                        <asp:ListItem Value="[#StoreHost]">店铺主人</asp:ListItem>
                        <asp:ListItem Value="[#StoreProductCount]">店铺商品数</asp:ListItem>
                        <asp:ListItem Value="[#StoreArea]">店铺所在地区</asp:ListItem>
                        
                    </asp:DropDownList>
                </td>
                <td>
                    显示省略号</td>
                <td>
                  
                    <asp:RadioButtonList ID="RadioButtonList5" runat="server" 
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="False">否</asp:ListItem>
                        <asp:ListItem Value="True">是</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                      <FCKeditorV2:FCKeditor ID="fckLabelContent2" runat="server"  BasePath="~/controls/fckeditor/"  Height="200px">
                    </FCKeditorV2:FCKeditor></td>
            </tr>
            
            <tr>
                <td colspan="4" align="center" style="text-align:center">
                   <input id="Button1" type="button" value="提交" onclick="ReturnValue2()" />
                    &nbsp;<input class="form" type="button" value=" 关 闭 "  onclick="javascript:CloseDiv();" /></td>
            </tr>
            </table>
    </div>
    </td>
    </tr>
    </table>
    </form>
</body>
</html>